package com.group.www.pojo.entityextends;

import com.group.www.pojo.BrandInfo;
import com.group.www.pojo.MessageInfo;
import com.group.www.pojo.UserInfo;

import java.util.Date;

public class MessageInfoExtend extends MessageInfo {

    private UserInfo userInfo;

    private BrandInfo brandInfo;

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public BrandInfo getBrandInfo() {
        return brandInfo;
    }

    public void setBrandInfo(BrandInfo brandInfo) {
        this.brandInfo = brandInfo;
    }

    public MessageInfoExtend() {

    }

    public MessageInfoExtend(Integer messageid, Integer brandid, Integer userid, String context, Integer isuser, Date messagetime, UserInfo userInfo, BrandInfo brandInfo) {
        super(messageid, brandid, userid, context, isuser, messagetime);
        this.userInfo = userInfo;
        this.brandInfo = brandInfo;
    }

    @Override
    public String toString() {
        return "MessageInfoExtend{" +
                "userInfo=" + userInfo +
                ", brandInfo=" + brandInfo +
                '}';
    }
}
